package com.common.util;

public class Page {

	/**
	 * 当前页码
	 */
	private int pagenum;
	
	/**
	 * 下一页
	 */
	private int nextPage;
	
	/**
	 * 是否有下一页
	 */
	private boolean next;
	
	/**
	 * 前一页
	 */
	private int previousPage;
	/**
	 * 是否有上一页
	 */
	private boolean previous;
	/**
	 * 总页数
	 */
	private int pages;

	public int getPreviousPage() {
		return previousPage;
	}

	public void setPreviousPage(int previousPage) {
		this.previousPage = previousPage;
	}

	public boolean isPrevious() {
		return previous;
	}

	public void setPrevious(boolean previous) {
		this.previous = previous;
	}

	public int getPagenum() {
		return pagenum;
	}

	public void setPagenum(int pagenum) {
		this.pagenum = pagenum;
	}

	public int getNextPage() {
		return nextPage;
	}

	public void setNextPage(int nextPage) {
		this.nextPage = nextPage;
	}

	public boolean isNext() {
		return next;
	}

	public void setNext(boolean next) {
		this.next = next;
	}

	public int getPages() {
		return pages;
	}

	public void setPages(int pages) {
		this.pages = pages;
	}
	
	public boolean HasNext(){
		return isNext();
	}
	
	public boolean HasPrevious(){
		return isPrevious();
	}
}
